package com.qipay.core.http;

public class HttpException extends RuntimeException {

    private static final long serialVersionUID = 2024030031043798620L;

    private Integer statusCode;

    private String responseText;

    public HttpException(Throwable e) {
        super(e);
    }

    public HttpException(String message) {
        super(message);
    }

    public HttpException(Integer statusCode, String responseText) {
        super("error status code:" + statusCode + ",error response message:" + responseText);
        this.statusCode = statusCode;
        this.responseText = responseText;
    }

    public Integer getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(Integer statusCode) {
        this.statusCode = statusCode;
    }

    public String getResponseText() {
        return responseText;
    }

    public void setResponseText(String responseText) {
        this.responseText = responseText;
    }
}
